﻿<controls:MetroContentControl x:Class="EasyHosts.Views.Hosts"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:editor="http://icsharpcode.net/sharpdevelop/avalonedit"
             xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
             xmlns:core="clr-namespace:EasyHosts"
             mc:Ignorable="d">
    <controls:MetroContentControl.CommandBindings>
        <CommandBinding Command="New" Executed="AddNewHostsCommandBindingExecuted" />
        <CommandBinding Command="Open" Executed="OpenCommandBindingExecuted" />
        <CommandBinding Command="Save" Executed="SaveCommandBindingExecuted" CanExecute="SaveCommandBindingCanExecute" />
        <CommandBinding Command="SaveAs" Executed="SaveAsCommandBindingExecuted" CanExecute="SaveAsCommandBindingCanExecute" />
        <CommandBinding Command="Print" Executed="PingCommandBindingExecuted" CanExecute="SaveAsCommandBindingCanExecute" />
        <CommandBinding Command="Refresh" Executed="RefreshCommandBindingExecuted" CanExecute="RefreshCommandBindingCanExecute" />
        <!--<CommandBinding Command="ApplicationCommands.Properties" Executed="PropertiesCommandBindingExecuted" />-->
    </controls:MetroContentControl.CommandBindings>
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,5,5,5">
        <Grid.Resources>

            <BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter" />
            <!--<converters:NegateBooleanToVisibilityConverter x:Key="NegateBoolToVisibilityConverter" />-->
            <Style TargetType="editor:SearchPanel">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type editor:SearchPanel}">
                            <Border Background="{DynamicResource WindowBackgroundBrush}" 
                                    BorderBrush="{DynamicResource AccentColorBrush}" 
                                    BorderThickness="1,0,0,1" HorizontalAlignment="Right" 
                                    VerticalAlignment="Top" Cursor="Arrow">
                                <StackPanel Orientation="Horizontal">
                                    <TextBox Name="PART_searchTextBox" Focusable="True" 
                                            BorderBrush="{DynamicResource AccentColorBrush}" 
                                            Width="150" Height="Auto" Margin="3,3,0,3">
                                        <TextBox.Text>
                                            <Binding Path="SearchPattern" 
                                                    RelativeSource="{RelativeSource TemplatedParent}" 
                                                    UpdateSourceTrigger="PropertyChanged">
                                                <Binding.ValidationRules>
                                                    <ExceptionValidationRule />
                                                </Binding.ValidationRules>
                                            </Binding>
                                        </TextBox.Text>
                                    </TextBox>

                                    <!-- FindNext button -->
                                    <Button Margin="0,1,1,1" Height="30" Width="30" Command="editor:SearchCommands.FindNext" 
                                        ToolTip="{Binding Localization.FindNextText, 
                                                RelativeSource={RelativeSource TemplatedParent}}" 
                                        Padding="1" Style="{DynamicResource MetroAccentButton}"
                                        BorderThickness="0" BorderBrush="Transparent">
                                        <Path Data="F1M-218.342,2910.79L-234.066,2926.52 -233.954,2926.63 -225.428,2926.63 -210.87,2912.07 -206.495,2907.7 -225.313,2888.88 -234.066,2888.88 -218.342,2904.6 -259.829,2904.6 -259.829,2910.79 -218.342,2910.79z" 
                                            Style="{DynamicResource DefaultButtonPathStyle}" />
                                    </Button>

                                    <!-- FindPrevious (set visibility if required) button -->
                                    <Button Margin="1" Height="30" Width="30" Command="editor:SearchCommands.FindPrevious" 
                                        ToolTip="{Binding Localization.FindPreviousText, 
                                        RelativeSource={RelativeSource TemplatedParent}}" 
                                        Padding="1" Style="{DynamicResource AccentedSquareButtonStyle}" 
                                        BorderThickness="0" BorderBrush="Transparent" Visibility="Collapsed">
                                        <Path Data="F1M-185.925,-2026.96L-203.062,-2048.74C-197.485,-2056.51 -197.433,-2067.31 -203.64,-2075.2 -211.167,-2084.76 -225.019,-2086.42 -234.588,-2078.89 -244.154,-2071.36 -245.808,-2057.51 -238.282,-2047.94 -231.986,-2039.95 -221.274,-2037.5 -212.337,-2041.31L-195.262,-2019.61 -185.925,-2026.96z M-231.201,-2053.51C-235.653,-2059.17 -234.674,-2067.36 -229.02,-2071.81 -223.36,-2076.26 -215.169,-2075.29 -210.721,-2069.63 -206.269,-2063.97 -207.245,-2055.78 -212.902,-2051.33 -218.559,-2046.88 -226.752,-2047.86 -231.201,-2053.51z" 
                                            Stretch="Uniform" Fill="{DynamicResource IdealForegroundColorBrush}" 
                                            Width="16" Height="16" />
                                    </Button>

                                    <StackPanel Orientation="Horizontal">
                                        <ToggleButton Width="36" Height="36" Margin="0" Cursor="Hand"
                                            ToolTip="{Binding Localization.MatchCaseText, RelativeSource={RelativeSource TemplatedParent}}"
                                            IsChecked="{Binding MatchCase, RelativeSource={RelativeSource TemplatedParent}}"
                                            Style="{DynamicResource MetroCircleToggleButtonStyle}" Content="aA" FontWeight="Bold" FontFamily="Consolas,Courier New,Courier">
                                        </ToggleButton>

                                        <ToggleButton Width="36" Height="36" Margin="0" Cursor="Hand" Style="{DynamicResource MetroCircleToggleButtonStyle}" 
                                            ToolTip="{Binding Localization.MatchWholeWordsText, RelativeSource={RelativeSource TemplatedParent}}"
                                            IsChecked="{Binding WholeWords, RelativeSource={RelativeSource TemplatedParent}}"
                                            Content="Ab" FontWeight="Bold" FontFamily="Consolas,Courier New,Courier">
                                        </ToggleButton>

                                        <ToggleButton Width="36" Height="36" Margin="0" Cursor="Hand" Style="{DynamicResource MetroCircleToggleButtonStyle}" 
                                            ToolTip="{Binding Localization.UseRegexText, RelativeSource={RelativeSource TemplatedParent}}"
                                            IsChecked="{Binding UseRegex, RelativeSource={RelativeSource TemplatedParent}}"
                                            Content="a*" FontWeight="Bold" FontFamily="Consolas,Courier New,Courier">
                                        </ToggleButton>
                                    </StackPanel>

                                    <!-- Search Panel close button -->
                                    <Button Height="16" Width="16" HorizontalAlignment="Right" Padding="0"
                                            Background="Transparent" Cursor="Hand" Visibility="Collapsed"
                                            VerticalAlignment="Top" Command="editor:SearchCommands.CloseSearchPanel"
                                            VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
                                        <Path Data="F1M54.0573,47.8776L38.1771,31.9974 54.0547,16.1198C55.7604,14.4141 55.7604,11.6511 54.0573,9.94531 52.3516,8.23962 49.5859,8.23962 47.8802,9.94531L32.0026,25.8229 16.1224,9.94531C14.4167,8.23962 11.6511,8.23962 9.94794,9.94531 8.24219,11.6511 8.24219,14.4141 9.94794,16.1198L25.8255,32 9.94794,47.8776C8.24219,49.5834 8.24219,52.3477 9.94794,54.0534 11.6511,55.7572 14.4167,55.7585 16.1224,54.0534L32.0026,38.1745 47.8802,54.0534C49.5859,55.7585 52.3516,55.7572 54.0573,54.0534 55.7604,52.3477 55.763,49.5834 54.0573,47.8776z" 
                                            Height="10" Width="10" Stretch="Uniform" Fill="Red" Margin="0" />
                                    </Button>
                                </StackPanel>
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style x:Key="SelectedHostItemPathStyle" TargetType="Path">
                <Setter Property="Stretch" Value="Uniform" />
                <!--<Setter Property="Fill" Value="{Binding ElementName=HostsEditor, Path=Background}" />-->
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Width" Value="18" />
                <Setter Property="Height" Value="18" />
                <Setter Property="Margin" Value="0,0,-12,0" />
                <!--<Setter Property="Visibility" Value="Collapsed" />-->
                <!--<Style.Triggers>
                    <DataTrigger Binding="{Binding Path=IsSelected, 
                                                    RelativeSource={RelativeSource FindAncestor, 
                                                    AncestorType=ListBoxItem}}" Value="True">
                        <Setter Property="Visibility" Value="Visible" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding Path=IsMouseOver, 
                                                    RelativeSource={RelativeSource FindAncestor, 
                                                    AncestorType=ListBoxItem}}" Value="True">
                        <Setter Property="Visibility" Value="Visible" />
                    </DataTrigger>
                </Style.Triggers>-->
                <Setter Property="Visibility" Value="{Binding Path=IsSelected, 
                                                              RelativeSource={RelativeSource FindAncestor, 
                                                              AncestorType=ListBoxItem}, 
                                                              Converter={StaticResource BoolToVisibilityConverter}}" />
            </Style>

            <DataTemplate x:Key="HostItemTemplate">
                <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Cursor="Hand">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="160" />
                        <ColumnDefinition Width="21" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding Name}" x:Name="TxtFileName" TextTrimming="CharacterEllipsis" 
                               ToolTip="{Binding Name}" Margin="0,7,2,7" VerticalAlignment="Center" HorizontalAlignment="Left" />

                    <Path Data="F1M181.003,-1898.78L207.077,-1902.33 207.089,-1877.18 181.027,-1877.03 181.003,-1898.78z M207.065,-1874.28L207.085,-1849.1 181.023,-1852.69 181.022,-1874.45 207.065,-1874.28z M210.226,-1902.79L244.798,-1907.84 244.798,-1877.5 210.226,-1877.22 210.226,-1902.79z M244.807,-1874.04L244.798,-1843.84 210.226,-1848.72 210.177,-1874.1 244.807,-1874.04z" 
                          Height="20" Width="20" Stretch="Uniform" Grid.Column="1"
                          HorizontalAlignment="Right" Fill="{Binding Foreground, ElementName=TxtFileName}"
                          Visibility="{Binding IsSystem, Converter={StaticResource BoolToVisibilityConverter}}" />

                    <!--<Path Data="M33.977998,27.684L33.977998,58.102997 41.373998,58.102997 41.373998,27.684z M14.841999,27.684L14.841999,58.102997 22.237998,58.102997 22.237998,27.684z M4.0319996,22.433001L52.183,22.433001 52.183,63.999001 4.0319996,63.999001z M15.974,0L40.195001,0 40.195001,7.7260003 56.167001,7.7260003 56.167001,16.000999 0,16.000999 0,7.7260003 15.974,7.7260003z" 
                          Grid.Column="1" Style="{StaticResource DeleteHostItemPathStyle}" />-->

                    <Path Grid.Column="2" Style="{StaticResource SelectedHostItemPathStyle}"
                          Fill="{Binding ElementName=HostsEditor, Path=Background, Mode=OneWay}"
                          Data="M582.309,226.984L547.355,194.984 582.309,162.984 582.309,226.984z" />
                </Grid>
            </DataTemplate>

            <Style TargetType="{x:Type FrameworkElement}">
                <Setter Property="FocusVisualStyle" Value="{x:Null}" />
            </Style>

            <Style x:Key="MessageIconStyle" TargetType="Path">
                <Setter Property="Fill" Value="{DynamicResource AccentColorBrush}" />
                <Setter Property="Margin" Value="3" />
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="Stretch" Value="Uniform" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Height" Value="20" />
                <Setter Property="Width" Value="20" />

                <Style.Triggers>
                    <DataTrigger Binding="{Binding MessageType}" Value="{x:Static core:MessageType.Failure}">
                        <Setter Property="Fill" Value="Red" />
                        <Setter Property="Data" Value="M19.85228,12.08996L12.093,19.849201 24.242323,31.997846 12.094,44.145998 19.852051,51.904958 32.001186,39.756277 44.150543,51.904958 51.909,44.145994 39.760246,31.997501 51.909,19.849201 44.15049,12.08996 32.001431,24.238849z M32,0C49.671021,3.1599484E-07 64,14.329407 64,31.998501 64,49.677606 49.671021,63.997003 32,63.997003 14.328003,63.997003 0,49.677606 0,31.998501 0,14.329407 14.328003,3.1599484E-07 32,0z" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding MessageType}" Value="{x:Static core:MessageType.Success}">
                        <Setter Property="Fill" Value="LimeGreen" />
                        <Setter Property="Data" Value="M36.363321,58.329464L37.688738,62.38419C34.733002,63.342396,31.635365,63.839901,28.487026,63.848999L28.470026,59.592373C31.176958,59.579472,33.83729,59.162868,36.363321,58.329464z M13.432145,54.766941C15.615571,56.342354,18.0155,57.56126,20.56883,58.380165L19.264114,62.42189C16.290179,61.475285,13.489345,60.058575,10.938415,58.218666z M49.129076,49.019405L52.569216,51.519421C50.734594,54.051937,48.524866,56.273453,45.993536,58.117165L43.480608,54.68354C45.648634,53.095032,47.550955,51.18742,49.129076,49.019405z M4.0803618,42.028561C4.9255018,44.572876,6.1597366,46.966091,7.7509763,49.127506L4.3173451,51.658821C2.4604721,49.121006,1.0205145,46.335789,0.039948463,43.364471z M59.637003,33.636509L59.637003,34.034912C59.637003,37.136532,58.458586,40.238152,57.500177,43.209568L53.100523,41.89576C53.927233,39.351543,54.858343,36.693928,54.858343,33.994709z M0.68831062,24.946352L4.3720355,26.23806C3.5777454,28.731577,3.7353072,31.344892,3.7353072,33.994709L0.039948463,34.152111 0.039948463,33.908611C0.039948463,30.90859,-0.24122047,27.867071,0.68831062,24.946352z M10.666311,9.9683876L13.195042,13.391579C11.036216,14.987989,9.1468327,16.904701,7.580404,19.088316L4.1220326,16.6143C5.9410641,14.066083,8.1468207,11.829269,10.666311,9.9683876z M37.367233,5.5061984C40.350368,6.4423647,43.157701,7.8408036,45.715033,9.6636953L43.243505,13.123477C41.050877,11.566068,38.645849,10.36936,36.091118,9.5634746z M28.141821,4.1390004L28.179623,8.3954973C25.47389,8.417717,22.825357,8.8576603,20.292927,9.7054453L18.941211,5.6636701C21.894346,4.6792936,24.989484,4.1636605,28.141821,4.1390004z M59.203161,0L64.000006,4.572906 53.57984,17.943296 53.696524,18.125271C54.940672,20.107922,55.947485,22.22826,56.699366,24.44895L52.668219,25.816158C52.237864,24.5427,51.709856,23.310266,51.089399,22.127472L50.770666,21.547821 30.119581,48.045776 26.666349,52.050999 23.356518,47.911674 9.135001,32.003983 13.707924,22.867332 27.425655,36.577011z" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding MessageType}" Value="{x:Static core:MessageType.Warning}">
                        <Setter Property="Fill" Value="Orange" />
                        <Setter Property="Data" Value="F1M874.094,289.369L854.3,254.63C854.028,254.151 853.515,253.856 852.958,253.856 852.403,253.856 851.89,254.151 851.617,254.63L831.824,289.369C831.555,289.84 831.559,290.416 831.835,290.883 832.111,291.348 832.618,291.634 833.165,291.634L872.752,291.634C873.299,291.634 873.805,291.348 874.081,290.883 874.357,290.416 874.361,289.84 874.094,289.369 M855.653,287.189L850.264,287.189 850.264,282.745 855.653,282.745 855.653,287.189z M855.653,279.41L850.264,279.41 850.264,266.077 855.653,266.077 855.653,279.41z" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding MessageType}" Value="{x:Static core:MessageType.Information}">
                        <Setter Property="Fill" Value="{StaticResource AccentColorBrush}" />
                        <Setter Property="Data" Value="M44.436129,25.256006L54.222273,25.256006 75.259996,46.29286 70.368799,51.187792 54.094614,67.462006 44.561911,67.462006 44.436129,67.337162 62.016504,49.752106 15.633995,49.752106 15.633995,42.837337 62.016504,42.837337z M45,5.6100006C23.245507,5.6100006 5.6100006,23.245506 5.6100006,45 5.6100006,66.754498 23.245507,84.389999 45,84.389999 66.754499,84.389999 84.389997,66.754498 84.389997,45 84.389997,23.245506 66.754499,5.6100006 45,5.6100006z M45,0C69.852816,0 89.999998,20.147187 89.999998,45 89.999998,69.852814 69.852816,90.000004 45,90.000004 20.147188,90.000004 9.5367432E-07,69.852814 0,45 9.5367432E-07,20.147187 20.147188,0 45,0z" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style TargetType="Path" x:Key="DefaultButtonPathStyle">
                <Setter Property="Fill" Value="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Button}, Path=Foreground}" />
                <Setter Property="Margin" Value="5,0,5,0" />
                <Setter Property="Stretch" Value="Uniform" />
                <Setter Property="Width" Value="16" />
                <Setter Property="Height" Value="16" />
                <Setter Property="HorizontalAlignment" Value="Center" />
                <Setter Property="VerticalAlignment" Value="Center" />
            </Style>

            <Style TargetType="TextBlock" x:Key="DefaultButtonTextBlockStyle">
                <Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Button}, Path=Foreground}" />
                <Setter Property="FontSize" Value="16" />
                <Setter Property="FontWeight" Value="Normal" />
                <Setter Property="TextOptions.TextRenderingMode" Value="ClearType" />
                <Setter Property="FontFamily" Value="Segoe UI,Verdana" />
                <Setter Property="Margin" Value="0,0,5,0" />
                <Setter Property="VerticalAlignment" Value="Center" />
            </Style>

        </Grid.Resources>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="600*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Grid HorizontalAlignment="Stretch" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>

            <DockPanel HorizontalAlignment="Stretch" Grid.Column="0" Grid.Row="0"
                        Margin="5,0,0,0" VerticalAlignment="Center" LastChildFill="True"
                        Visibility="{Binding ShowMessage, Converter={StaticResource BoolToVisibilityConverter}}">
                <Path DockPanel.Dock="Left" x:Name="msgIconDash" Style="{DynamicResource MessageIconStyle}" />
                <TextBlock Margin="3,3,5,5" FontWeight="SemiBold" FontSize="14" 
                           VerticalAlignment="Center" HorizontalAlignment="Left"
                           TextWrapping="Wrap"
                           Foreground="{Binding ElementName=msgIconDash, Path=Fill}">
                    <Run Text="{Binding Message}" FontWeight="SemiBold"  FontSize="14" />
                    <Run Text="{Binding MessageDetails}" FontSize="12" />
                </TextBlock>
            </DockPanel>

            <TextBlock Grid.Column="1" HorizontalAlignment="Right" Margin="5" VerticalAlignment="Top" 
                Text="{Binding SelectedHostFile.Name}" ToolTip="{Binding SelectedHostFile.HostEntryPath}"
                FontSize="18" FontWeight="ExtraLight" MaxWidth="250" TextTrimming="CharacterEllipsis" 
                Foreground="{DynamicResource AccentColorBrush}" />

        </Grid>

        <Grid Grid.Row="1" Grid.Column="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <TextBlock Grid.Column="0" Text="AVAILABLE HOSTS" FontSize="15" Margin="5"
                   FontWeight="ExtraLight"  Foreground="{DynamicResource AccentColorBrush}" VerticalAlignment="Center" />

        </Grid>

        <Grid Grid.Row="1" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>

            <!--New button-->
            <Button Grid.Column="0" Cursor="Hand" HorizontalAlignment="Left" Margin="0,5,5,5" Padding="4"
                    Command="New" Style="{DynamicResource MetroAccentButton}"
                     BorderBrush="Transparent" BorderThickness="0"
                    ToolTip=" add new empty hosts file ">
                <Button.Content>
                    <StackPanel Orientation="Horizontal">
                        <Path Data="M25.053024,27.040001L32.007024,27.040001 32.007024,37.927001 42.892025,37.927001 42.892025,44.879002 32.007024,44.879002 32.007024,55.765001 25.053024,55.765001 25.053024,44.879002 14.168024,44.879002 14.168024,37.927001 25.053024,37.927001z M22.158013,5.3900852L21.795012,17.160269C21.795013,17.160269,21.325013,24.950391,12.748007,24.010376L5.3960018,23.810373 5.3960018,57.250895C5.3960018,57.990908,6.0030022,58.600916,6.748003,58.600916L44.532026,58.600916C45.274027,58.600916,45.881027,57.990908,45.881027,57.250895L45.881027,6.7401066C45.881027,6.0000954,45.274027,5.3900852,44.532026,5.3900852z M21.805013,0L44.532026,0C48.25803,0,51.280031,3.0200481,51.280031,6.7401066L51.280031,57.250895C51.280031,60.980953,48.25803,64.000999,44.532026,64.000999L6.748003,64.000999C3.0210018,64.000999,0,60.980953,0,57.250895L0,23.00036 2.6720009,20.180316 2.6750011,20.100315 16.67801,5.3900852 16.63801,5.3900852 12.895007,9.340147 16.81701,5.1900826 16.87301,5.1900826 16.99601,5.0600796 17.00801,5.0600796z"
                                Style="{DynamicResource DefaultButtonPathStyle}" />
                        <TextBlock  Text="new" Style="{DynamicResource DefaultButtonTextBlockStyle}" />
                    </StackPanel>
                </Button.Content>
            </Button>
            
            <!--Reload button-->
            <Button Grid.Column="1" Cursor="Hand" HorizontalAlignment="Left" Margin="0,5,5,5" Padding="4"
                    Command="Refresh" Style="{DynamicResource MetroAccentButton}"
                     BorderBrush="Transparent" BorderThickness="0"
                    ToolTip=" reload the content from disk [F5] ">
                <Button.Content>
                    <StackPanel Orientation="Horizontal">
                        <!-- hosts_click -->
                        <Path Data="M2.7499252,30.299848L18.669936,37.698865 14.349932,40.728464C17.789935,43.70807 22.169938,45.567823 26.799941,45.567823 35.689946,45.567823 43.469952,39.758592 45.309953,31.289716L45.599953,30.639802 53.339959,30.639802 52.979958,31.949628C50.759957,44.417974 39.749951,52.776868 26.799941,52.776868 19.539937,52.776868 12.809932,49.897249 7.8799284,44.937906L4.2499259,47.387582z M26.539532,0C33.809293,-6.8510417E-08,40.529256,2.7602325,45.459096,7.7205935L49.089028,5.050457 50.589001,21.701824 34.669381,15.291273 38.989247,12.360982C35.549249,9.3807617 31.16945,7.7306042 26.539532,7.7306042 17.649688,7.7306042 9.8698071,13.921167 8.0298765,22.401832L7.7398427,23.832002 0,23.832002 0.3599781,21.681804C2.5799068,9.2108264,13.589706,-6.8510417E-08,26.539532,0z"
                                Style="{DynamicResource DefaultButtonPathStyle}" />
                        <TextBlock  Text="reload" Style="{DynamicResource DefaultButtonTextBlockStyle}" />
                    </StackPanel>
                </Button.Content>
            </Button>

            <!--Set Hosts button Click="setHosts_Click" -->
            <Button Grid.Column="2" Cursor="Hand" HorizontalAlignment="Left" Padding="4" Margin="0,5,5,5" 
                     BorderBrush="Transparent" BorderThickness="0"
                    Command="{Binding SetHostsCommand}" IsEnabled="{Binding IsHostsEnabled}" Style="{DynamicResource MetroAccentButton}"
                    ToolTip=" sets the currently selected file as hosts ">
                <Button.Content>
                    <StackPanel Orientation="Horizontal">
                        <Path Data="M42.740464,20.370161L47.461911,20.370161C47.531934,20.370161,47.601956,20.380159,47.671975,20.390158L47.681977,20.370161C58.075162,21.63995,57.645028,30.478476,57.645028,30.478476L57.865098,44.88607 64.006974,44.88607 54.253991,56.974056 44.721074,44.88607 50.442826,44.88607C50.442826,44.88607 51.063016,34.027882 50.442826,30.478476 49.752614,26.519136 47.351876,25.729267 46.031472,25.609287L42.740464,25.609287C41.850194,25.609287,41.129971,24.949398,41.129971,24.139532L41.129971,21.839916C41.129971,21.030052,41.850194,20.370161,42.740464,20.370161z M25.925414,15.699088C19.796477,15.659052 14.797349,20.598572 14.757316,26.728174 14.717406,32.857532 19.656487,37.857105 25.775416,37.89714 31.914361,37.937176 36.913491,33.007423 36.953522,26.868053 36.993554,20.738451 32.054353,15.738879 25.925414,15.699088z M26.025372,0.00023509646C28.345036,0.020253172,30.584635,0.36031197,32.724278,0.93033196L33.60413,6.7997031C35.773675,7.6297097,37.773324,8.7995319,39.523019,10.249359L45.072102,8.1496849C47.681634,10.829388 49.701298,14.059092 51.001,17.638863 50.091248,17.388885 49.141339,17.178942 48.081586,17.048826L45.352082,17.018799 42.732545,17.018799C39.993031,17.018799,37.773324,19.17877,37.773324,21.838455L37.773324,24.138308C37.773324,26.787983,39.993031,28.947954,42.732545,28.947954L45.821973,28.947954C46.171887,29.017773 46.821797,29.287769 47.13168,31.057638 47.441685,32.837513 47.381634,37.597118 47.231759,41.53672L37.793339,41.53672 39.393037,43.556568 39.313096,43.526543C37.533375,44.946587,35.523717,46.08638,33.354172,46.89637L32.394257,52.755733C30.244729,53.295727 28.005007,53.605759 25.675458,53.595749 23.355916,53.575729 21.116315,53.235672 18.976674,52.665897L18.096822,46.80629C15.937164,45.966518,13.937513,44.796452,12.177809,43.346626L6.6288493,45.446545C3.5092761,42.236614,1.2097502,38.236954,0,33.787384L4.6590998,30.077742C4.4792001,28.967972 4.3692338,27.827932 4.3792412,26.658112 4.389128,25.498054 4.51911,24.358259 4.6991317,23.248247L0.099957864,19.488558C1.3597484,15.038988,3.7093146,11.079366,6.868798,7.9097147L12.397742,10.079452C14.167454,8.6396331,16.187121,7.509603,18.356787,6.6998577L19.306573,0.8402514C21.456221,0.30025851,23.70583,-0.0097735567,26.025372,0.00023509646z"
                              Style="{DynamicResource DefaultButtonPathStyle}">
                        </Path>
                        <TextBlock  Text="set hosts" Width="Auto" Style="{DynamicResource DefaultButtonTextBlockStyle}" />
                    </StackPanel>
                </Button.Content>
            </Button>

            <!--Ping-->
            <Button Grid.Column="3" Cursor="Hand" HorizontalAlignment="Left" Margin="0,5,5,5" Padding="4" Command="Print"
                    Style="{DynamicResource MetroAccentButton}" BorderBrush="Transparent" BorderThickness="0"
                    ToolTip=" pings the selected host name [ctrl + p] ">
                <Button.Content>
                    <StackPanel Orientation="Horizontal">
                        <Path Data="M15.484477,36.668C15.981843,36.966096 16.510509,37.152196 17.063771,37.239595 17.420648,39.339875 18.138,42.496041 19.647001,46.539003 16.822988,45.801912 13.824387,44.425622 10.750391,42.127546 10.702293,42.092347 10.647597,42.050748 10.602,42.011647 12.138398,40.239564 13.78019,38.445283 15.484477,36.668z M0.18000031,35.340001C21.109592,62.393193,41.892073,43.704469,41.892073,43.704469L38.382893,36.660299 54.375,42.916673 50.020926,59.935003C50.020926,59.935003 47.61854,55.285222 46.674644,53.374929 36.302204,61.860696 8.9586315,64.188882 0.18000031,35.340001z M38.315056,23.537002C38.605352,24.024011 38.990847,24.465421 39.468641,24.822229 41.07402,26.020154 43.213392,25.947252 44.740772,24.811828 49.955505,29.063119 54.429348,34.026925 58.023003,39.594743L58.091999,39.705346C57.913704,40.202657,57.721004,40.697564,57.523006,41.189775L55.382435,40.355157 39.385342,34.093324 32.723928,31.487769 35.912687,37.884908 38.416555,42.907212C35.64709,44.805753,29.647168,48.044122,22.174665,47.029702L22.148466,46.955499C20.96368,43.665029 20.069192,40.296457 19.452,36.940885 20.148491,36.647981 20.785282,36.184571 21.270977,35.535955 22.198064,34.292428 22.363362,32.719495 21.863369,31.363967 26.953103,27.912194 32.479132,25.281839 38.315056,23.537002z M56.78595,20.473512C57.237782,20.468772,57.689449,20.468827,58.14077,20.473703L58.195469,20.474902C58.700764,21.990466 59.118656,23.549127 59.382954,25.177987 60.024948,29.18959 59.828251,33.141294 58.936459,36.860002 55.372601,31.653028 51.078346,26.996843 46.167002,22.99694 46.385799,22.491754 46.502998,21.957967 46.519798,21.42538L46.525097,21.424079C46.791994,21.369481 47.064091,21.316081 47.336189,21.270482 50.452291,20.774896 53.623135,20.506692 56.78595,20.473512z M22.823098,13.192002C28.156434,14.787101 33.224168,17.055402 37.926001,19.9551 37.791899,20.371801 37.717699,20.798902 37.713799,21.2273 31.630357,23.136001 25.863418,25.9264 20.569183,29.541 20.500082,29.4798 20.446781,29.414701 20.380282,29.3639 19.812577,28.9395 19.171973,28.6907 18.519569,28.574901 18.296967,24.201301 18.536568,19.807901 19.226674,15.502001 20.474081,15.418601 21.67979,14.834001 22.485796,13.754502 22.618596,13.573501 22.720297,13.383601 22.823098,13.192002z M7.102994,10.545001L7.2318954,10.550301 7.6928406,10.568401C9.8022356,10.6675 12.060042,10.912297 14.560071,11.310693 14.618672,12.58798 15.205979,13.828968 16.308793,14.65166 16.514595,14.806758 16.737098,14.929157 16.965,15.043756 16.221591,19.64911 15.991189,24.248063 16.271092,28.73492 15.475482,29.020116 14.746274,29.529212 14.202067,30.258403 13.152455,31.66459 13.080955,33.486272 13.842564,34.943258 12.356946,36.458841 10.679826,38.323323 8.8309145,40.533002 1.0547028,33.199876 0.34241104,30.017606 0,29.090415 0.18750191,22.141284 2.7734737,15.63365 7.102994,10.545001z M20.618001,1.5180007C19.974851,3.1480712 19.379798,4.8914878 18.808243,6.7235915 17.512845,6.7652103 16.247244,7.3563821 15.412709,8.4747183 15.281321,8.6492121 15.187428,8.8394072 15.083336,9.0230009 13.147288,8.7274105 11.118748,8.5216162 9.059,8.4630186 12.268457,5.3524138 16.186149,2.9527072 20.618001,1.5180007z M29.630353,0.0010389588C41.731157,-0.10009919 52.638956,7.1912233 57.324001,18.17901 53.774601,18.18551 50.296701,18.461608 46.9764,18.994102 46.641798,19.047401 46.309698,19.112502 45.9751,19.175 45.682199,18.637305 45.278502,18.14381 44.7498,17.749313 43.029799,16.464126 40.679499,16.629424 39.147001,18.025312 34.1756,14.949939 28.8279,12.552762 23.3384,10.914678 23.2798,9.6425898 22.6873,8.3991014 21.591001,7.5788896 21.4347,7.4629304 21.2654,7.3783314 21.104001,7.2858006 21.815001,4.8991143 22.557199,2.7819445 23.363101,0.89011045L23.424401,0.74155195C23.9867,0.61143507 24.5467,0.47214631 25.127501,0.37961559 26.640234,0.13737133 28.144289,0.01346082 29.630353,0.0010389588z"
                                Style="{DynamicResource DefaultButtonPathStyle}" />
                        <TextBlock  Text=" ping " Style="{DynamicResource DefaultButtonTextBlockStyle}" />
                    </StackPanel>
                </Button.Content>
            </Button>

            <!--Import button-->
            <!--<Button Grid.Column="2" Cursor="Hand" HorizontalAlignment="Left" Padding="4" Margin="0,5,5,5" Visibility="Collapsed"
                     BorderBrush="Transparent" BorderThickness="0"
                    Style="{DynamicResource MetroAccentButton}" IsEnabled="False" ToolTip="Import other ">
                <Button.Content>
                    <StackPanel Orientation="Horizontal">
                        <Path Data="M27.187227,8.4450006L27.187227,16.512667C61.32288,16.512667 64,36.689709 64,40.721001 56.637947,24.585644 27.187227,32.648121 27.187227,32.648121L27.187227,40.721001 10.122,25.598541z M0,0L42.667,0 42.667,4.2655888 42.667,8.5337868 38.401371,8.5337868 38.401371,4.2655888 4.2656202,4.2655888 4.2656202,46.934441 38.401371,46.934441 38.401371,42.666283 42.667,42.666283 42.667,46.934441 42.667,51.200001 38.401371,51.200001 0,51.200001 0,46.934441 0,4.2655888z"
                                            Style="{DynamicResource DefaultButtonPathStyle}" />
                        <TextBlock  Text="import" Style="{DynamicResource DefaultButtonTextBlockStyle}" />
                    </StackPanel>
                </Button.Content>
            </Button>-->

            <!--Export button-->
            <!--<Button Grid.Column="3" Cursor="Hand" HorizontalAlignment="Left" Visibility="Collapsed"
                     BorderBrush="Transparent" BorderThickness="0"
                    Style="{DynamicResource MetroAccentButton}" Padding="4" Margin="0,5,5,5" IsEnabled="False">
                <Button.Content>
                    <StackPanel Orientation="Horizontal">
                        <Path Data="M45.963548,8.269645L62.665147,25.065546 45.963548,39.871244 45.963548,31.963644C45.963548,31.963644 17.120617,24.075571 9.909945,39.871244 9.9099454,35.922571 12.530199,16.167482 45.963548,16.167483z M0,0L41.778571,0 41.778571,4.1795139 41.778571,8.3590277 37.598714,8.3590277 37.598714,4.1795139 4.1798577,4.1795139 4.1798577,45.954649 37.598714,45.954649 37.598714,41.775137 41.778571,41.775137 41.778571,45.954649 41.778571,50.134165 37.598714,50.134165 0,50.134165 0,45.954649 0,4.1795139z"
                                            Style="{DynamicResource DefaultButtonPathStyle}" />
                        <TextBlock  Text="export" Style="{DynamicResource DefaultButtonTextBlockStyle}" />
                    </StackPanel>
                </Button.Content>
            </Button>-->

            <!--Save button Click="saveFile_Click" -->
            <Button Grid.Column="4" Cursor="Hand" HorizontalAlignment="Left" Padding="4" Margin="0,5,5,5" Command="Save"
                     BorderBrush="Transparent" BorderThickness="0"
                    Style="{DynamicResource MetroAccentButton}" ToolTip=" saves the currently selected host file [ctrl + s] ">
                <Button.Content>
                    <StackPanel Orientation="Horizontal">
                        <Path Data="M8.1099597,36.94997L8.1099597,41.793968 39.213959,41.793968 39.213959,36.94997z M12.42,0.049999889L18.4,0.049999889 18.4,12.252 12.42,12.252z M0,0L7.9001866,0 7.9001866,14.64218 39.210766,14.64218 39.210766,0 47.401001,0 47.401001,47.917 0,47.917z"
                            Style="{DynamicResource DefaultButtonPathStyle}" />
                        <TextBlock  Text=" save " Width="Auto" Style="{DynamicResource DefaultButtonTextBlockStyle}" />
                    </StackPanel>
                </Button.Content>
            </Button>

            <!-- Column 6 is a place holder -->
            <!--<controls:MetroProgressBar Grid.Column="5" Visibility="{Binding IsBusy, Converter={StaticResource BoolToVisibilityConverter}}"
                                       Margin="10,0" HorizontalAlignment="Stretch" VerticalAlignment="Center" />-->

            <!--Enable/Disable Hosts toggle switch-->
            <controls:ToggleSwitch OnLabel="ON   " OffLabel="OFF   " VerticalAlignment="Center"
                    IsChecked="{Binding IsHostsEnabled}" ToolTip=" enable or disable system hosts files "
                    Grid.Column="6" Cursor="Hand" Margin="0,0,5,0" />
        </Grid>

        <ListBox Grid.Row="2" Grid.Column="0" ItemsSource="{Binding HostFiles}" Margin="0,0,0,1"
                             ItemTemplate="{StaticResource HostItemTemplate}"
                             SelectedItem="{Binding SelectedHostFile}" HorizontalContentAlignment="Stretch"
                             HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        </ListBox>

        <editor:TextEditor x:Name="HostsEditor" Margin="0,0,0,1" Loaded="HostsEditor_OnLoaded"
                           Grid.Row="2" Grid.Column="1" HorizontalAlignment="Stretch" 
                           VerticalAlignment="Stretch" LineNumbersForeground="{DynamicResource AccentColorBrush}"
                           ShowLineNumbers="True" HorizontalScrollBarVisibility="Auto"
                           VerticalScrollBarVisibility="Auto" FontFamily="Consolas" FontSize="13"
                           Document="{Binding Document}">
            <editor:TextEditor.Resources>
                <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}" 
                       x:Key="{x:Type Button}">
                </Style>
            </editor:TextEditor.Resources>
            <editor:TextEditor.ContextMenu>
                <ContextMenu>
                    <MenuItem Command="Undo" >
                        <MenuItem.Icon>
                            <Path Data="F1M-198.67,4280.19C-197.609,4277.78 -197.035,4275.17 -197.035,4272.46 -197.035,4267.33 -199.032,4262.51 -202.665,4258.88 -206.286,4255.25 -211.107,4253.26 -216.235,4253.26 -221.365,4253.26 -226.186,4255.25 -229.811,4258.88 -232.498,4261.57 -234.282,4264.92 -235.032,4268.56L-225.835,4278.86 -252.503,4278.86 -250.373,4251.38 -241.577,4261.22C-240.214,4258.14 -238.303,4255.3 -235.844,4252.85 -230.61,4247.61 -223.644,4244.72 -216.235,4244.72 -208.822,4244.72 -201.861,4247.61 -196.627,4252.85 -191.39,4258.08 -188.503,4265.05 -188.503,4272.46 -188.503,4275.11 -188.894,4277.71 -189.617,4280.19L-198.67,4280.19z" 
                                                  Stretch="Uniform" Fill="{DynamicResource AccentColorBrush}" 
                                                  Width="16" Height="16" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem Command="Redo" >
                        <MenuItem.Icon>
                            <Path Data="F1M1182.69,1926.92C1181.55,1924.36 1179.96,1921.99 1177.91,1919.94 1173.55,1915.58 1167.74,1913.17 1161.57,1913.17 1155.39,1913.17 1149.59,1915.58 1145.23,1919.94 1140.86,1924.31 1138.46,1930.11 1138.46,1936.28 1138.46,1942.46 1140.86,1948.26 1145.23,1952.62 1145.92,1953.32 1146.83,1953.66 1147.74,1953.66 1148.65,1953.66 1149.56,1953.32 1150.26,1952.62 1151.64,1951.24 1151.64,1948.99 1150.26,1947.59 1147.23,1944.57 1145.57,1940.56 1145.57,1936.28 1145.57,1932.01 1147.23,1927.99 1150.26,1924.97 1153.28,1921.94 1157.29,1920.28 1161.57,1920.28 1165.84,1920.28 1169.86,1921.94 1172.88,1924.97 1175.12,1927.21 1176.61,1930 1177.23,1933.04L1169.57,1941.62 1191.79,1941.62 1190.01,1918.71 1182.69,1926.92z" 
                                                  Stretch="Uniform" Fill="{DynamicResource AccentColorBrush}" 
                                                  Width="16" Height="16" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <Separator/>
                    <MenuItem Command="Cut">
                        <MenuItem.Icon>
                            <Path Data="M26.93272,40.905998L26.451015,41.976318 24.699699,46.260094 24.439299,46.437298 21.630575,52.664005C21.368874,53.533619 21.357073,54.478939 21.699675,55.054646 22.090179,55.712357 23.079786,56.020966 24.280296,55.861763 26.486116,55.570259 29.517443,53.617123 30.788252,49.075542 31.509558,46.499798 31.469257,44.511963 30.671051,43.16914 29.822144,41.747314 28.163231,41.153507 26.93272,40.905998z M11.809452,21.572449C8.7251377,21.600742 6.5700688,22.9643 5.5466814,24.369844 4.210753,26.208536 4.8657231,27.786457 7.3722467,28.260103L14.150891,28.755148 14.254991,28.702854 15.780988,28.872335 19.955578,29.176001C20.325277,27.981735 20.596077,26.236832 19.749779,24.812695 18.95038,23.469145 17.223885,22.487257 14.61439,21.891125 13.609521,21.661287 12.673059,21.564526 11.809452,21.572449z M43.601677,0L31.104164,30.593931 64,34.285347 55.42709,39.385468 38.033871,39.015766 31.391865,35.604153 29.14706,35.375153 28.790461,36.250156C30.869762,36.812656 33.401066,38.005566 34.957165,40.618874 36.48177,43.182285 36.69537,46.476799 35.591068,50.419617 33.666668,57.299545 28.55196,60.151161 24.841057,60.64336 21.628952,61.070564 18.648352,59.679455 17.22135,57.279045 16.519447,56.099339 16.921848,51.107117 16.990749,50.893318L18.683651,47.164303 23.837255,34.88295 11.005141,33.620747 6.8593082,33.422047C6.5311871,33.361946 1.6901219,31.174433 1.002491,30.01823 -0.4245705,27.617319 -0.39203876,24.054804 1.5142117,21.435192 3.7186239,18.408779 8.7628794,15.437566 15.726547,17.028872 19.718651,17.937576 22.511755,19.700785 24.036356,22.263296 25.624956,24.933706 25.423157,27.788721 24.901056,29.896128L25.817659,30.00013 26.742159,27.78722 26.984358,20.442987 35.029865,5.097682z" 
                                                  Stretch="Uniform" Fill="{DynamicResource AccentColorBrush}" 
                                                  Width="16" Height="16" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem Command="Copy" >
                        <MenuItem.Icon>
                            <Path Data="M31.687001,23.116L31.687001,31.394341C31.687001,31.394341,31.526705,36.832023,25.52624,36.359949L18.506,36.388395 18.506,49.587002 18.506001,54.153999 18.506,59.292614C18.506,59.812107,18.929218,60.233997,19.448625,60.233997L45.808704,60.233997C46.326101,60.233997,46.749998,59.812107,46.749998,59.292614L46.749998,24.057384C46.749998,23.539322,46.326101,23.116,45.808704,23.116z M20.552001,4.5669994L20.552001,14.60861C20.552001,14.60861,20.358706,21.203206,13.080177,20.631915L4.565999,20.665694 4.565999,48.4459C4.566,49.076302,5.0797424,49.587002,5.7100554,49.587002L14.742001,49.587002 14.742001,35.400336 18.161097,31.792807 18.166127,31.774705 26.474542,22.972 26.521163,22.972 29.953973,19.349999 38.822001,19.349999 38.822001,5.7076302C38.822001,5.0806808,38.309198,4.5669994,37.680792,4.5669994z M18.449971,0L37.680651,0C40.833681,0,43.391001,2.5571156,43.391001,5.707489L43.391001,19.349999 45.80884,19.349999C48.409018,19.35,50.517,21.458894,50.517,24.05704L50.517,59.292992C50.517,61.893593,48.409018,64,45.80884,64L19.448812,64C16.849223,64,14.742,61.893593,14.742001,59.292992L14.742001,54.153999 5.709774,54.153999C2.555994,54.153999,0,51.599316,0,48.445534L0,19.465691 4.1473293,15.090039 4.1532602,15.068708 14.229262,4.3929996 14.286199,4.3929996z" 
                                                  Stretch="Uniform" Fill="{DynamicResource AccentColorBrush}" 
                                                  Width="16" Height="16" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem Command="Paste">
                        <MenuItem.Icon>
                            <Path Data="M31.948999,57.859001L45.188999,57.859001 45.188999,59.699001 31.948999,59.699001z M31.948999,51.950001L45.188999,51.950001 45.188999,53.791 31.948999,53.791z M28.396044,35.408001C28.009256,35.408001,27.689001,35.726357,27.689001,36.116974L27.689001,62.648006C27.689001,63.039406,28.009256,63.357002,28.396044,63.357002L48.248085,63.357002C48.638691,63.357002,48.957001,63.039406,48.957001,62.648006L48.957001,45.402447 43.671608,45.381203C39.153995,45.736,39.033001,41.642223,39.033001,41.642223L39.033001,35.408001z M28.395853,32.571999L40.336986,32.571999 42.92213,35.299999 42.958431,35.299999 49.212662,41.928822 49.216327,41.942017 51.790001,44.657917 51.790001,62.648022C51.790001,64.605804,50.204025,66.191002,48.247158,66.191002L28.395853,66.191002C26.438854,66.191002,24.853,64.605804,24.853,62.648022L24.853,36.116901C24.853,34.16061,26.438854,32.571999,28.395853,32.571999z M23.4165,2.7189999C21.472765,2.7190001 19.896,4.211246 19.896,6.0526261 19.896,7.8918042 21.472765,9.3859997 23.4165,9.3859997 25.360433,9.3859997 26.936998,7.8918042 26.936998,6.0526261 26.936998,4.211246 25.360433,2.7190001 23.4165,2.7189999z M23.4165,0C26.836176,0,29.627563,2.5418639,29.798687,5.7406974L29.806993,6.0519996 35.229999,6.0519996 35.229999,7.9879994 46.833999,7.9879994 46.833999,34.156097 41.895698,28.945999 41.695999,28.945999 41.695999,14.389 35.229999,14.389 35.229999,20.865 11.604001,20.865 11.604001,14.389 5.136998,14.389 5.136998,59.294998 21.228,59.294998 21.228,62.648151C21.228,63.142387,21.27823,63.625092,21.373855,64.091423L21.431106,64.338997 0,64.338997 0,7.9879994 11.604001,7.9879994 11.604001,6.0519996 17.026007,6.0519996 17.034315,5.7406974C17.205442,2.5418639,19.996919,0,23.4165,0z" 
                                                  Stretch="Uniform" Fill="{DynamicResource AccentColorBrush}" 
                                                  Width="16" Height="16" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem Command="SelectAll">
                        <MenuItem.Icon>
                            <Path Data="M8.1700211,47.039999L12.604023,47.039999 12.604023,49.707 8.1700211,49.707z M40.390022,46.860001L46.917023,46.860001 46.917023,49.519 40.390022,49.519z M28.730022,46.860001L35.255022,46.860001 35.255022,49.519 28.730022,49.519z M17.020023,46.860001L23.547024,46.860001 23.547024,49.519 17.020023,49.519z M51.600023,46.86L56.032023,46.86 56.032023,49.519 51.600023,49.519z M0.19005585,45.27L2.8512268,45.27 2.8512268,47.040329 4.6220016,47.040329 4.6220016,49.700824 0.19005585,49.700824z M61.329687,45.090117L63.999095,45.090117 63.999095,49.521118 59.570096,49.521118 59.570096,46.860466 61.329687,46.860466z M0.19002151,37.3L2.8480225,37.3 2.8480225,41.732001 0.19002151,41.732001z M61.330022,37.110001L63.998022,37.110001 63.998022,41.54 61.330022,41.54z M61.160022,29.87L63.819023,29.87 63.819023,33.741 61.160022,33.741z M0.19002151,29.83L2.8480225,29.83 2.8480225,33.704 0.19002151,33.704z M61.160022,22.93L63.819023,22.93 63.819023,26.799999 61.160022,26.799999z M0.19002151,22.91L2.8480225,22.91 2.8480225,26.780001 0.19002151,26.780001z M61.160022,16L63.819023,16 63.819023,19.872 61.160022,19.872z M0.19002151,15.960001L2.8480225,15.960001 2.8480225,19.830999 0.19002151,19.830999z M2.2888184E-05,8.1599998L2.6710243,8.1599998 2.6710243,12.591 2.2888184E-05,12.591z M61.160023,7.9799995L63.819023,7.9799995 63.819023,12.411999 61.160023,12.411999z M0,0.19007874L4.4300652,0.19007874 4.4300652,2.8505745 2.6700401,2.8505745 2.6700401,4.620903 0,4.620903z M40.460022,0.18999863L46.984022,0.18999863 46.984022,2.8499985 40.460022,2.8499985z M28.760023,0.18999863L35.287022,0.18999863 35.287022,2.8499985 28.760023,2.8499985z M17.090023,0.18999863L23.615021,0.18999863 23.615021,2.8499985 17.090023,2.8499985z M7.9800224,0.18999863L12.412022,0.18999863 12.412022,2.8499985 7.9800224,2.8499985z M59.389984,1.9073486E-05L63.822052,1.9073486E-05 63.822052,4.4308434 61.16081,4.4308434 61.16081,2.670517 59.389984,2.670517z M51.410023,0L55.840023,0 55.840023,2.6660004 51.410023,2.6660004z" 
                                                  Stretch="Uniform" Fill="{DynamicResource AccentColorBrush}" 
                                                  Width="16" Height="16" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <Separator />
                    <MenuItem Command="Delete">
                        <MenuItem.Icon>
                            <Path Data="M33.978,27.679999L33.978,58.098995 41.374,58.098995 41.374,27.679999z M14.841001,27.679999L14.841001,58.098995 22.237,58.098995 22.237,27.679999z M4.0320003,22.430001L52.183002,22.430001 52.183002,63.995998 4.0320003,63.995998z M15.974001,0L40.194999,0 40.194999,7.7200003 56.166999,7.7200003 56.166999,15.995 0,15.995 0,7.7200003 15.974001,7.7200003z" 
                                                  Stretch="Uniform" Fill="PaleVioletRed"
                                                  Width="16" Height="16">
                            </Path>
                        </MenuItem.Icon>
                    </MenuItem>
                    <Separator />
                    <MenuItem Command="Open" Header="Open containing folder">
                        <MenuItem.Icon>
                            <Path Data="M0,21.940001L64,21.940001 58.81641,53.042002 5.4832716,53.042002z M5.4829998,0L26.983213,0 26.983213,6.5154943 58.805,6.5154943 58.805,14.362 5.5063095,14.362 5.5063095,7.1121521 5.4829998,7.1121521z" 
                                                  Stretch="Uniform" Fill="{DynamicResource AccentColorBrush}"
                                                  Width="16" Height="16">
                            </Path>
                        </MenuItem.Icon>
                    </MenuItem>
                    <Separator />
                    <MenuItem Command="SaveAs" Header="Save selection as new file...">
                        <MenuItem.Icon>
                            <Path Data="M15.342,43.641001L15.342,48.223001 44.771999,48.223001 44.771999,43.641001z M19.417,8.7200002L25.077,8.7200002 25.077,20.264 19.417,20.264z M7.6669996,8.6700003L15.142873,8.6700003 15.142873,22.531861 44.772419,22.531861 44.772419,8.6700003 52.521,8.6700003 52.521,54.011 7.6669996,54.011z M11.75,0.06000042L17.41,0.06000042 17.41,6 11.75,6z M37.105419,0L44.854,0 44.854,6 42.10524,6 42.10524,6.0100532 37.105419,6.0100532z M0,0L7.475813,0 7.475813,6 4.9999998,6 4.9999998,45.341002 0,45.341002z" 
                                                  Stretch="Uniform" Fill="{DynamicResource AccentColorBrush}"
                                                  Width="16" Height="16">
                            </Path>
                        </MenuItem.Icon>
                    </MenuItem>
                </ContextMenu>
            </editor:TextEditor.ContextMenu>
        </editor:TextEditor>

    </Grid>
</controls:MetroContentControl>